home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Mail
/
MailEnclosure
/
Source.v0.15
/
StringStorage.h
< prev
next >
Wrap
Text File
|
1995-06-12
|
1KB
|
36 lines
#import <objc/Storage.h>
/*
** StringStorage.h,v 1.4 1992/05/21 22:46:59 nwc Exp
**
** Copyright (c) 1991 Ronin Consulting, Inc.
**
** StringStorage is a subclass of Storage designed to store null
** terminated character strings. Null termination is guaranteed, therefore
** should this object's setStringValue method be called with a (char *)0
** arguement the resulting value from stringValue will be a null terminated
** empty string, i.e. "" not (char *)0.
*/
@interface StringStorage : Storage
- init;
- init: (const char *) str;
- setStringValue: (const char *) str; /* Set the string value */
- (const char *) stringValue; /* return the string pointer */
- appendStringValue: (const char *)str; /* append another string to the strings contents */
- appendCharValue: (char) c; /* append a character to the strings contents */
- (int) matchSubstring: (const char *)str;
- (char *) getSubstring: (const char *)str;
- replaceSubstring: (const char *)str with: (const char *)str2;
- (int) strlen; /* just (count - 1)...but cleaner */
- empty; /* override to ensure null termination */
- (unsigned int)hash; /* Provide a hash function */
@end